package com.example.day_0813_103;

import com.example.day_0813_103.slice.four_AbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class four_Ability extends Ability {
    private static final HiLogLabel LABEL = new HiLogLabel(HiLog.LOG_APP,0x00201,"MY_TAG");

    @Override
    public void onStart(Intent intent) {
        HiLog.info(LABEL,"这里是 four_Ability 的 onStart");
        super.onStart(intent);
        super.setMainRoute(four_AbilitySlice.class.getName());
    }
    @Override
    public void onActive() {
        HiLog.info(LABEL,"这里是 four_Ability 的 onActive");
        super.onActive();
        Intent intent = new Intent();
        intent.setParam("value","你最强!");
        setResult(456,intent);
    }
}
